/*
 * Account
 * 
 * The class Account represents an account in the system
 * 
 * Author: Carmine Colicino, Luigi Di Martino
 * Version: 1.0
 * 
 * 2014 - Copyright by Team 6 - University of Salerno
*/
package it.unisa.udocs.data;

public class Account {
	private String username;
	private String password;
	private String tipologia;
	private int id_account;
	
	/**
	 * Constructs a new Account
	 * 
	 * @param id - the account id
	 * @param usr - the username
	 * @param psw - the password
	 * @param tip - the account type
	 */
	public Account(int id,String usr,String psw ,String tip){
		username=usr;
		password=psw;
		tipologia=tip;
		id_account=id;
		
	}
	
	/**
	 * Returns the username of an account
	 * 
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}
	
	/**
	 * Sets the username of an account
	 * 
	 * @param the username
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * Returns the password of an account
	 * 
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Sets the password of an account
	 * 
	 * @param password - the password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Returns the type of an account
	 * 
	 * @return the type
	 */
	public String getTipologia() {
		return tipologia;
	}

	/**
	 * Sets the type of an account
	 * 
	 * @param tipologia - the type
	 */
	public void setTipologia(String tipologia) {
		this.tipologia = tipologia;
	}

	/**
	 * Returns the id of an account
	 * 
	 * @return the id
	 */
	public int getId_account() {
		return id_account;
	}

	/**
	 * Sets the id of an account
	 * 
	 * @param id_account - the id
	 */
	public void setId_account(int id_account) {
		this.id_account = id_account;
	}
	
	

}
